package com.example.demo.Service;

import com.example.demo.Entity.Userinfo;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
@Autowired
public  UserMapper userMapper;

   public int reg(Userinfo userinfo){
     return userMapper.reg(userinfo);
   }
   public Userinfo login(String name){
       return userMapper.login(name);
   }

}
